-- GENERATED SPELL FOR [Theramore Preserver] --


function spell0_3386(pUnit, Event) --@Cure Disease,n/a--
pUnit:FullCastSpellOnTarget(528,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3386', 627, 1)
end

function spell1_3386(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3386', 2500, 1)
end

function spell2_3386(pUnit, Event) --@Lesser Heal,Heal--
pUnit:FullCastSpellOnTarget(2052,pUnit)
pUnit:RegisterEvent('Sorts_3386', 2000, 1)
end

function spell3_3386(pUnit, Event) --@Renew,n/a--
pUnit:FullCastSpellOnTarget(6074,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3386', 15000, 1)
end

function Sorts_3386(pUnit, Event)
local choix_sorts_3386 = math.random(0, 3)
if choix_sorts_3386 == 0 then
pUnit:RegisterEvent('spell0_3386', 1, 1)
end
if choix_sorts_3386 == 1 then
pUnit:RegisterEvent('spell1_3386', 1, 1)
end
if choix_sorts_3386 == 2 then
pUnit:RegisterEvent('spell2_3386', 1, 1)
end
if choix_sorts_3386 == 3 then
pUnit:RegisterEvent('spell3_3386', 1, 1)
end
end

function mob3386_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3386', math.random(1500, 3000), 1)
end

function mob3386_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3386_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3386_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3386, 1, 'mob3386_Action')
RegisterUnitEvent(3386, 2, 'mob3386_Leave')
RegisterUnitEvent(3386, 3, 'mob3386_Kill')
RegisterUnitEvent(3386, 4, 'mob3386_Die')
